package jwcb.portal.server.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

@Getter
@Setter
@ToString
public class PhoneLoginDto extends LoginDto{
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式不正确")
    private String phone;


    @NotBlank(message = "验证码不能为空")
    @Length(min = 6 ,max = 6,message = "验证码格式不正确")
    private String code;
}
